import org.apache.commons.lang3.tuple.*;

public class PairAndTriple {

	 public static void pair() {
		Pair<Integer, Integer> pair = new ImmutablePair<>(1, 2);
		System.out.println(pair.getLeft() + " " + pair.getRight());
		// 输出: 1 2
	 }
	 
	 public static void triple() {
		Triple<Integer, Integer, Integer> triple = new ImmutableTriple<>(1,2,3);
		System.out.println(triple.getLeft() + " " + triple.getMiddle() + " " + triple.getRight());
		// 输出: 1 2 3
	 }
}